﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TicketSystem
{
    public partial class UC_Backs : UserControl
    {
        public UC_Backs()
        {
            InitializeComponent();
        }

        private void InitData()
        {
            DataTable dt = (DataTable)rowMergeView1.DataSource;
            if (dt != null)
            {
                dt.Rows.Clear();
                rowMergeView1.DataSource = dt;
            }
            this.rowMergeView1.ColumnHeadersHeight = 40;
            this.rowMergeView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.rowMergeView1.MergeColumnNames.Add("Column1");
            this.rowMergeView1.AddSpanHeader(3, 2, "首套船");
            this.rowMergeView1.AddSpanHeader(5, 2, "二道船");
            this.rowMergeView1.AddSpanHeader(7, 2, "三道船");
            this.rowMergeView1.AddSpanHeader(9, 3, "公园票");
        }

        private void btn_Search_Click(object sender, EventArgs e)
        {

        }
    }
}
